package com.mk.Mapper;


import com.mk.Entity.Blog;
import com.mk.Entity.queryObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BlogMapper {

    List<Blog> selectAll(queryObject queryObject);
    List<Blog> selectByTagId(queryObject queryObject);
    List<String> selectAllTime(queryObject queryObject);
    //查询所有的更新时间，然后求数量
    List<String> selectTime();
    List<Blog> selectBlogByTime(String updateDate);
    Blog selectOne(Long bid);
    Integer selectCount(queryObject queryObject);

    void deleteBlog(Long did);

    void insert(Blog blog);
    void update(Blog blog);

}
